import { TabItems } from '@/ts/base/model'
import memberIcon from '../../../static/members.png'
import groupIcon from '../../../static/groups.png'
import departmentIcon from '../../../static/department.png'
import orgGroupIcon from '../../../static/org-group.png'
import filesIcon from '../../../static/files.png'

const TabList = [
  {
    id: 'person',
    title: '单位成员'
  },
  {
    id: 'organization',
    title: '加入的组织'
  }
]
const Tablecolumns = ['code', 'nikiName', 'name', 'remark']
const Tableheader = [
  {
    field: 'code',
    name: '账号',
    opts: {
      color: '#f5f5f5'
    }
  },
  {
    field: 'nikiName',
    name: '昵称',
    opts: {
      color: '#f5f5f5'
    }
  },
  {
    field: 'name',
    name: '姓名',
    opts: {
      color: '#f5f5f5'
    }
  },
  {
    field: 'remark',
    name: '签名',
    opts: {
      color: '#f5f5f5'
    }
  }
]

const groupColumns = ['label', 'code', 'remark']
const groupHeader = [
  {
    field: 'label',
    name: '组织群名称',
    opts: {
      color: '#f5f5f5'
    }
  },
  {
    field: 'code',
    name: '组织群编码',
    opts: {
      color: '#f5f5f5'
    }
  },
  {
    field: 'remark',
    name: '集团简称',
    opts: {
      color: '#f5f5f5'
    }
  }
]
const relationType: TabItems[] = [
  {
    id: '1',
    code: 'all',
    label: '全部'
  },
  {
    // id: '2',
    // code: 'used',
    // label: '常用'
    id: '2',
    code: 'person',
    label: '个人'
  },
  {
    // id: '3',
    // code: 'new',
    // label: '最近'
    id: '3',
    code: 'company',
    label: '单位'
  }
]

const memberListData = [
  {
    id: 'member',
    label: '好友',
    itemType: '',
    icon: memberIcon,
    isShow: false
  },
  {
    id: 'group',
    label: '群组',
    itemType: '',
    icon: groupIcon,
    isShow: false
  },
  {
    id: 'files',
    label: '资源',
    itemType: '',
    icon: filesIcon,
    isShow: false
  }
]

const groupListData = [
  {
    id: 'member',
    label: '成员',
    itemType: '',
    icon: memberIcon,
    isShow: false
  },
  {
    id: 'group',
    label: '群组',
    itemType: '',
    icon: groupIcon,
    isShow: false
  },
  {
    id: 'group',
    label: '部门',
    itemType: '',
    icon: departmentIcon,
    isShow: false
  },
  {
    id: 'group',
    label: '组织群',
    itemType: '',
    icon: orgGroupIcon,
    isShow: false
  },
  {
    id: 'files',
    label: '资源',
    itemType: '',
    icon: filesIcon,
    isShow: false
  }
]

const memberTypeList = [
  {
    id: 'members',
    title: '好友'
  },
  {
    id: 'files',
    title: '文件'
  }
]
const groupTypeList = [
  {
    id: 'members',
    title: '成员'
  },
  {
    id: 'setting',
    title: '设置'
  }
]

const departmentTypeList = [
  {
    id: 'members',
    title: '成员'
  },
  {
    id: 'department',
    title: '下级部门'
  }
]
export {
  TabList,
  Tablecolumns,
  Tableheader,
  relationType,
  groupColumns,
  groupHeader,
  memberListData,
  memberTypeList,
  groupListData,
  groupTypeList,
  departmentTypeList
}
